<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="taskId" name="taskId" th:value="${ztzbProcessWorkload.taskId}" type="hidden">
                        <input id="procInsId" name="procInsId" th:value="${ztzbProcessWorkload.procInsId}" type="hidden">
                        <input id="id" name="id" th:value="${ztzbProcessWorkload.id}"
                               type="hidden">
                                                                <input id="productNumber1"  th:value="${ztzbProcessWorkload.productNumber}" class="form-control" type="hidden">
                                                            <input id="processNumber1"  th:value="${ztzbProcessWorkload.processNumber}" class="form-control" type="hidden">
                                    <input id="employeeId1"  th:value="${ztzbProcessWorkload.employeeId}" class="form-control" type="hidden">
                                                                                                        <input id="inspection1"  th:value="${ztzbProcessWorkload.inspection}" class="form-control" type="hidden">
                        <input id="warehousing1"  th:value="${ztzbProcessWorkload.warehousing}" class="form-control" type="hidden">
                                                                                                                                                                                                                                                                                                                                                                                                            <div class="form-group">
                                            <label class="col-sm-3 control-label">部门：</label>
                                            <div class="col-sm-8">
                                                <input id="deptName" name="deptName"
                                                       th:value="${ztzbProcessWorkload.deptName}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">工序日期：</label>
                                            <div class="col-sm-8">
                                                <input id="processDate" name="processDate"
                                                       class="form-control" type="text"
                                                       th:value="${#dates.format(ztzbProcessWorkload.processDate,'yyyy-MM-dd')}"
                                                     th:disabled="${ !#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">产品编号：</label>
                                            <div class="col-sm-8">
                                                <select id="productNumber" name="productNumber"
                                                        class="form-control" type="text"                                                         required th:disabled="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                                    <option value="">请选择</option>
                                                </select>
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">产品名称：</label>
                                            <div class="col-sm-8">
                                                <input id="productName" name="productName"
                                                       th:value="${ztzbProcessWorkload.productName}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">规格型号：</label>
                                            <div class="col-sm-8">
                                                <input id="specificationModel" name="specificationModel"
                                                       th:value="${ztzbProcessWorkload.specificationModel}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">单位：</label>
                                            <div class="col-sm-8">
                                                <input id="unit" name="unit"
                                                       th:value="${ztzbProcessWorkload.unit}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">工序编号：</label>
                                            <div class="col-sm-8">
                                                <select id="processNumber" name="processNumber"
                                                        class="form-control" type="text"                                                         required th:disabled="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                                    <option value="">请选择</option>
                                                </select>
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">工序描述：</label>
                                            <div class="col-sm-8">
                                                <input id="processDescription" name="processDescription"
                                                       th:value="${ztzbProcessWorkload.processDescription}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">员工编号：</label>
                                            <div class="col-sm-8">
                                                <select id="employeeId" name="employeeId"
                                                        class="form-control" type="text"                                                         required th:disabled="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                                    <option value="">请选择</option>
                                                </select>
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">员工姓名：</label>
                                            <div class="col-sm-8">
                                                <input id="employeeName" name="employeeName"
                                                       th:value="${ztzbProcessWorkload.employeeName}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">数量：</label>
                                            <div class="col-sm-8">
                                                <input id="quantity" name="quantity"
                                                       th:value="${ztzbProcessWorkload.quantity}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">计件合计金额：</label>
                                            <div class="col-sm-8">
                                                <input id="totalAmount" name="totalAmount"
                                                       th:value="${ztzbProcessWorkload.totalAmount}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">单价：</label>
                                            <div class="col-sm-8">
                                                <input id="unitPrice" name="unitPrice"
                                                       th:value="${ztzbProcessWorkload.unitPrice}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">工时：</label>
                                            <div class="col-sm-8">
                                                <input id="manHour" name="manHour"
                                                       th:value="${ztzbProcessWorkload.manHour}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">工时合计金额：</label>
                                            <div class="col-sm-8">
                                                <input id="totalAmountHour" name="totalAmountHour"
                                                       th:value="${ztzbProcessWorkload.totalAmountHour}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">总计金额：</label>
                                            <div class="col-sm-8">
                                                <input id="totalAmountTotal" name="totalAmountTotal"
                                                       th:value="${ztzbProcessWorkload.totalAmountTotal}"
                                                       class="form-control" type="text"
                                                       th:readonly="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}">
                                            </div>
                                        </div>
                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">检验：</label>
                                            <div class="col-sm-8">
                                                <select id="inspection" name="inspection"
                                                        class="form-control" type="text"   th:disabled="${!#lists.contains(#strings.listSplit('管理员审核;', ';'), ztzbProcessWorkload.taskName)}">
                                                    <option value="">请选择</option>
                                                </select>
                                            </div>
                                        </div>

                                                                                                                                                                                                                                                                <div class="form-group">
                                            <label class="col-sm-3 control-label">入库：</label>
                                            <div class="col-sm-8">
                                                <select id="warehousing" name="warehousing"
                                                        class="form-control" type="text"   th:disabled="${!#lists.contains(#strings.listSplit('管理员审核;', ';'), ztzbProcessWorkload.taskName)}">
                                                    <option value="">请选择</option>
                                                </select>
                                            </div>
                                        </div>

                                                                                                                                                                                                                                                                                                            <div class="form-group">
                                                <label class="col-sm-3 control-label ">管理员意见：</label>
                                                <div class="col-sm-8">
                                                <textarea id="contentAdmin" name="contentAdmin"
                                                          th:text="${ztzbProcessWorkload.contentAdmin}"
                                                          class="form-control"
                                                          rows="3"  th:disabled="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}"></textarea>
                                                </div>
                                            </div>
                                            
                                                                                                                                                                                                                                                                                                            <div class="form-group">
                                                <label class="col-sm-3 control-label ">经理意见：</label>
                                                <div class="col-sm-8">
                                                <textarea id="contentManager" name="contentManager"
                                                          th:text="${ztzbProcessWorkload.contentManager}"
                                                          class="form-control"
                                                          rows="3"  th:disabled="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}"></textarea>
                                                </div>
                                            </div>
                                            
                                                                                                                                                                                                                                                                                                            <div class="form-group">
                                                <label class="col-sm-3 control-label ">副总意见：</label>
                                                <div class="col-sm-8">
                                                <textarea id="contentVicePresident" name="contentVicePresident"
                                                          th:text="${ztzbProcessWorkload.contentVicePresident}"
                                                          class="form-control"
                                                          rows="3"  th:disabled="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}"></textarea>
                                                </div>
                                            </div>
                                            
                                                                                                                                                                                                                                                                                                            <div class="form-group">
                                                <label class="col-sm-3 control-label ">人力意见：</label>
                                                <div class="col-sm-8">
                                                <textarea id="contentHumanResources" name="contentHumanResources"
                                                          th:text="${ztzbProcessWorkload.contentHumanResources}"
                                                          class="form-control"
                                                          rows="3"  th:disabled="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}"></textarea>
                                                </div>
                                            </div>
                                            
                                                                                                                                                                                                                                                                                                                                                                <div class="form-group">
                                                <label class="col-sm-3 control-label ">备注：</label>
                                                <div class="col-sm-8">
                                                <textarea id="remarks" name="remarks"
                                                          th:text="${ztzbProcessWorkload.remarks}"
                                                          class="form-control"
                                                          rows="3"  th:disabled="${!#lists.contains(#strings.listSplit('', ';'), ztzbProcessWorkload.taskName)}"></textarea>
                                                </div>
                                            </div>
                                            
                                                                                                                                                                                                                                                                                                            <div class="form-group">
                                                <label class="col-sm-3 control-label ">审核意见：</label>
                                                <div class="col-sm-8">
                                                <textarea id="content" name="content"
                                                          th:text="${ztzbProcessWorkload.content}" class="form-control" rows="3"  ></textarea>
                                                </div>
                                            </div>
                                        
                                                                                                                                                                                                                                                                                                            <div class="form-group">
                            <label class="col-sm-3 text-right font-20">附件：</label>
                            <label class="col-sm-8 text-left font-20">
                                <div th:each="attatch : ${ztzbProcessWorkload.attatchList}">
                                    <!--                                    <a class="col-sm-8 text-left"-->
                                    <!--                                       style="font-size:16px;text-decoration:underline;color: blue"-->
                                    <!--                                       th:onclick="'onlineFile(\''+${attatch.fileDO.url}+'\')'"-->
                                    <!--                                       th:text="${attatch.fileDO.originalName}">-->
                                    <!--                                    </a>-->

                                    <button class="col-sm-8 text-left"
                                            style="font-size:16px;text-decoration:underline;color: blue;border:0;outline:none;background-color: transparent;"
                                            th:onclick="'onlineFile(\''+${attatch.fileDO.url}+'\')'"
                                            th:text="${attatch.fileDO.originalName}">
                                    </button>
                                    <button class="btn btn-primary col-sm-1" type="button"
                                            th:onclick="'window.location.href=\'' + ${ '/common/sysFile/download/'+attatch.fileDO.id }  + '\''">
                                        <a style="text-decoration: none;color: white;"
                                           th:href="${'/common/sysFile/downloadType/'+attatch.fileDO.id + '/'+999+''}">
                                            下载
                                        </a>
                                    </button>
                                </div>
                            </label>
                        </div>
                            <input id="taskPass" name="taskPass" class="hidden">
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary" onclick="$('#taskPass').val('1')">提交
                                </button>
                                <button type="submit" class="btn btn-warning" onclick="$('#taskPass').val('0')">退回
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    document.write("<script type='text/javascript' src='/js/appjs/ztzb/ztzbProcessWorkload/apply.js?r=" + Math.random() + "'></s" + "cript>");
</script>
<script type='text/javascript' src='/js/plugins/laydate/laydate.js'></script>
<script type="text/javascript" src="/js/layui.js">
</script>
<script type="text/javascript">
    document.write("<script type='text/javascript' src='/js/appjs/ztzb/ztzbProcessWorkload/common.js?r=" + Math.random() + "'></s" + "cript>");
</script>
</body>
</html>
